
"EWDBGetStats" addPublicVariableEventHandler {
_data = _this select 1;
_queryResult = "extDB" callExtension format["0:EWDB:GetPlayerStats:%1",_data select 1];
_remove = call compile format["%1",_queryResult];
_send = _remove select 1 select 1 select 0;
EWDBStats = _send;
_cleintID = call compile format["%1",_data select 0];
_cleintID publicVariableClient "EWDBStats";};
 
 
"EWDBAddStats" addPublicVariableEventHandler {
_data = _this select 1;
"extDB" callExtension format["0:EWDB:AddPlayerStats:%1",_data select 1];
sleep 0.25;
_queryResult = "extDB" callExtension format["0:EWDB:GetPlayerStats:%1",_data select 1];
_remove = call compile format["%1",_queryResult];
_send = _remove select 1 select 1 select 0;
EWDBStats = _send;
_cleintID = call compile format["%1",_data select 0];
_cleintID publicVariableClient "EWDBStats";
};
 
"EWDBUpdateStats" addPublicVariableEventHandler {
_data = _this select 1;
"extDB" callExtension format['0:EWDB:UpdatePlayerStats:%1:%2:%3',_data select 0,_data select 1 select 0,_data select 1 select 1];
};

"EWDBTrackerStats" addPublicVariableEventHandler {
_data = _this select 1;
"extDB" callExtension format['0:EWDB:UpdateTrackerStats:%1:%2:%3',_data select 0,_data select 1 select 0,_data select 1 select 1];
};
 